<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: GamedayRemoteFetcher</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">GamedayRemoteFetcher</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../files/lib/gameday_remote_fetcher_rb.html">
                lib/gameday_remote_fetcher.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000067">fetch</a>&nbsp;&nbsp;
      <a href="#M000084">fetch_batter</a>&nbsp;&nbsp;
      <a href="#M000090">fetch_batters_page</a>&nbsp;&nbsp;
      <a href="#M000071">fetch_bench</a>&nbsp;&nbsp;
      <a href="#M000072">fetch_bencho</a>&nbsp;&nbsp;
      <a href="#M000073">fetch_boxscore</a>&nbsp;&nbsp;
      <a href="#M000070">fetch_day_highlights</a>&nbsp;&nbsp;
      <a href="#M000074">fetch_emailsource</a>&nbsp;&nbsp;
      <a href="#M000068">fetch_epg</a>&nbsp;&nbsp;
      <a href="#M000075">fetch_eventlog</a>&nbsp;&nbsp;
      <a href="#M000077">fetch_game_events</a>&nbsp;&nbsp;
      <a href="#M000076">fetch_game_xml</a>&nbsp;&nbsp;
      <a href="#M000078">fetch_gamecenter_xml</a>&nbsp;&nbsp;
      <a href="#M000079">fetch_gamedaysyn</a>&nbsp;&nbsp;
      <a href="#M000089">fetch_games_page</a>&nbsp;&nbsp;
      <a href="#M000088">fetch_inning_hit</a>&nbsp;&nbsp;
      <a href="#M000087">fetch_inning_scores</a>&nbsp;&nbsp;
      <a href="#M000086">fetch_inningx</a>&nbsp;&nbsp;
      <a href="#M000080">fetch_linescore</a>&nbsp;&nbsp;
      <a href="#M000092">fetch_media_highlights</a>&nbsp;&nbsp;
      <a href="#M000093">fetch_media_mobile</a>&nbsp;&nbsp;
      <a href="#M000081">fetch_miniscoreboard</a>&nbsp;&nbsp;
      <a href="#M000097">fetch_notifications_full</a>&nbsp;&nbsp;
      <a href="#M000096">fetch_notifications_inning</a>&nbsp;&nbsp;
      <a href="#M000094">fetch_onbase_linescore</a>&nbsp;&nbsp;
      <a href="#M000095">fetch_onbase_plays</a>&nbsp;&nbsp;
      <a href="#M000085">fetch_pitcher</a>&nbsp;&nbsp;
      <a href="#M000091">fetch_pitchers_page</a>&nbsp;&nbsp;
      <a href="#M000082">fetch_players</a>&nbsp;&nbsp;
      <a href="#M000083">fetch_plays</a>&nbsp;&nbsp;
      <a href="#M000069">fetch_scoreboard</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000067" class="method-detail">
        <a name="M000067"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000067.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000067.html');return false;">
          <span class="method-name">fetch</span><span class="method-args">(url)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000084" class="method-detail">
        <a name="M000084"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000084.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000084.html');return false;">
          <span class="method-name">fetch_batter</span><span class="method-args">(gid, pid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the batters/(pid).xml file
</p>
        </div>
      </div>

      <div id="method-M000090" class="method-detail">
        <a name="M000090"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000090.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000090.html');return false;">
          <span class="method-name">fetch_batters_page</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000071" class="method-detail">
        <a name="M000071"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000071.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000071.html');return false;">
          <span class="method-name">fetch_bench</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the bench.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/bench.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/bench.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000072" class="method-detail">
        <a name="M000072"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000072.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000072.html');return false;">
          <span class="method-name">fetch_bencho</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the benchO.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/benchO.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/benchO.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000073" class="method-detail">
        <a name="M000073"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000073.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000073.html');return false;">
          <span class="method-name">fetch_boxscore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the boxscore.xml file and returns its contents Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2009/month_05/day_08/gid_2009_05_08_detmlb_clemlb_1/boxscore.xml">gd2.mlb.com/components/game/mlb/year_2009/month_05/day_08/gid_2009_05_08_detmlb_clemlb_1/boxscore.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000070" class="method-detail">
        <a name="M000070"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000070.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000070.html');return false;">
          <span class="method-name">fetch_day_highlights</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000074" class="method-detail">
        <a name="M000074"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000074.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000074.html');return false;">
          <span class="method-name">fetch_emailsource</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the emailSource.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/emailSource.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/emailSource.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000068" class="method-detail">
        <a name="M000068"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000068.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000068.html');return false;">
          <span class="method-name">fetch_epg</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000075" class="method-detail">
        <a name="M000075"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000075.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000075.html');return false;">
          <span class="method-name">fetch_eventlog</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the eventLog.xml file and returns its contents Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_flomlb_wasmlb_1/eventLog.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_flomlb_wasmlb_1/eventLog.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000077" class="method-detail">
        <a name="M000077"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000077.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000077.html');return false;">
          <span class="method-name">fetch_game_events</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000076" class="method-detail">
        <a name="M000076"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000076.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000076.html');return false;">
          <span class="method-name">fetch_game_xml</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the game.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000078" class="method-detail">
        <a name="M000078"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000078.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000078.html');return false;">
          <span class="method-name">fetch_gamecenter_xml</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the gamecenter.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000079" class="method-detail">
        <a name="M000079"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000079.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000079.html');return false;">
          <span class="method-name">fetch_gamedaysyn</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the gameday_Syn.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/gameday_Syn.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/gameday_Syn.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000089" class="method-detail">
        <a name="M000089"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000089.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000089.html');return false;">
          <span class="method-name">fetch_games_page</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000088" class="method-detail">
        <a name="M000088"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000088.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000088.html');return false;">
          <span class="method-name">fetch_inning_hit</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_hit.xml
</p>
        </div>
      </div>

      <div id="method-M000087" class="method-detail">
        <a name="M000087"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000087.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000087.html');return false;">
          <span class="method-name">fetch_inning_scores</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_Score.xml
</p>
        </div>
      </div>

      <div id="method-M000086" class="method-detail">
        <a name="M000086"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000086.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000086.html');return false;">
          <span class="method-name">fetch_inningx</span><span class="method-args">(gid, inning_num)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_X.xml
</p>
        </div>
      </div>

      <div id="method-M000080" class="method-detail">
        <a name="M000080"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000080.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000080.html');return false;">
          <span class="method-name">fetch_linescore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the linescore.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/linescore.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/linescore.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000092" class="method-detail">
        <a name="M000092"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000092.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000092.html');return false;">
          <span class="method-name">fetch_media_highlights</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000093" class="method-detail">
        <a name="M000093"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000093.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000093.html');return false;">
          <span class="method-name">fetch_media_mobile</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000081" class="method-detail">
        <a name="M000081"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000081.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000081.html');return false;">
          <span class="method-name">fetch_miniscoreboard</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the miniscoreboard.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/miniscoreboard.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/miniscoreboard.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000097" class="method-detail">
        <a name="M000097"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000097.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000097.html');return false;">
          <span class="method-name">fetch_notifications_full</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000096" class="method-detail">
        <a name="M000096"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000096.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000096.html');return false;">
          <span class="method-name">fetch_notifications_inning</span><span class="method-args">(gid, inning)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000094" class="method-detail">
        <a name="M000094"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000094.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000094.html');return false;">
          <span class="method-name">fetch_onbase_linescore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000095" class="method-detail">
        <a name="M000095"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000095.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000095.html');return false;">
          <span class="method-name">fetch_onbase_plays</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000085" class="method-detail">
        <a name="M000085"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000085.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000085.html');return false;">
          <span class="method-name">fetch_pitcher</span><span class="method-args">(gid, pid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the pitchers/(pid).xml file
</p>
        </div>
      </div>

      <div id="method-M000091" class="method-detail">
        <a name="M000091"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000091.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000091.html');return false;">
          <span class="method-name">fetch_pitchers_page</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000082" class="method-detail">
        <a name="M000082"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000082.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000082.html');return false;">
          <span class="method-name">fetch_players</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the players.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000083" class="method-detail">
        <a name="M000083"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000083.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000083.html');return false;">
          <span class="method-name">fetch_plays</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the plays.xml file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/plays.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/plays.xml</a>
</p>
        </div>
      </div>

      <div id="method-M000069" class="method-detail">
        <a name="M000069"></a>

        <div class="method-heading">
          <a href="GamedayRemoteFetcher.src/M000069.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayRemoteFetcher.src/M000069.html');return false;">
          <span class="method-name">fetch_scoreboard</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the master scoreboard file Sample URL: <a
href="http://gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/master_scoreboard.xml">gd2.mlb.com/components/game/mlb/year_2008/month_04/day_07/master_scoreboard.xml</a>
</p>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>